package com.xx.job.orderhystrix80.service;

import com.xx.job.common.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "PAYMENT-HYSTRIX",fallback = PaymentBackService.class)
public interface PaymentService {

    @RequestMapping("/payment/hystrix/ok/{id}")
    public CommonResult histrixOk(@PathVariable("id") String id);

    @RequestMapping("/payment/hystrix/timeout/{id}")
    public CommonResult histrixTimeOut(@PathVariable("id") String id);
}
